﻿using ServiceStack.Web;
using Ymatou.User.Dto.Auth;
using YmtAuth.Dto;

namespace YmtAuth.AppService
{
    public interface IAuthQueryAppService
    {
        /// <summary>
        /// 查询相同的登录凭据
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseData<BillsExistsResponseDto> FindLoginBillsExists(UserBillsExistsRequestDto dto, IRequest request = null);
        /// <summary>
        /// 获取修改登录名次数
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        ResponseData<long> GetModifyLoginIdCount(BillsLoginIdModifyEventRequestDto dto, IRequest request = null);
        /// <summary>
        /// 获取登录失败的次数
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        int GetLoginFailCount(LoginLimitRequestDto dto, IRequest request = null);      
    }
}
